package com.luchao.back.mapper;

import com.luchao.back.pojo.Color;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ColorMapper {

    List<Color> getColorByPage(@Param("startNum") int startNum, @Param("pageSize") int pageSize);

    int addColor(Color color);

    int editColor(Color color);

    long getColorCount();

    int checkColor(String cname);

    List<Color> getAllColor();

    int batchChangeState(List<Color> colors);

    List<Color> getAllColorForView();
}
